package ada.com.uhotel.api.utils;

import ada.com.uhotel.api.handler.TokenApi;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by cng19 on 2017/8/20.
 */

public class ApiUtils {

    public static <T> T get (Class<T> tClass){
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl("https://kp.yizhiyao.cc")
                .addConverterFactory(GsonConverterFactory.create())
                .build();

        T service = retrofit.create(tClass);
        return service;
    }
}
